# -*- coding: utf-8 -*-
from django.db import models

class WallRecord(models.Model):
    image = models.CharField(max_length=512, null=False)
    url = models.CharField(max_length=512, null=False)
    date = models.DateTimeField(auto_now_add=True)

class VKNew(models.Model):

    STATUS_UNDEFINED = 0
    STATUS_IN_PROGRESS = 1
    STATUS_READY = 2

    STATUSES = (
        (STATUS_UNDEFINED, 'Неизвестно'),
        (STATUS_IN_PROGRESS, 'В процессе'),
        (STATUS_READY, 'Готово')
    )

    message = models.TextField(max_length=1024, null=False)
    date = models.DateTimeField(auto_now_add=True)
    status = models.IntegerField(choices=STATUSES, default=STATUS_UNDEFINED)

class VKUser(models.Model):
	uid = models.CharField(max_length=64, null=False)
    #date = models.DateTimeField(auto_now_add=True)	
